package com.sofwin.system.service;

import com.github.pagehelper.PageInfo;
import com.sofwin.system.dto.DeptDto;
import com.sofwin.system.pojo.SysDept;
import com.sofwin.system.vo.DeptTreeVO;

import java.util.List;

/**
 * @packageName: com.sofwin.system.service
 * @user: andyliu
 * @date: 2021/7/16 9:55
 * @email 115176513@qq.com
 * @description: TODO
 */

public interface DeptService {

    PageInfo<SysDept> queryByPage(SysDept dept, Integer pageNumber, Integer pageSize);

    List<SysDept> queryDepts(SysDept dept);

    boolean saveOrUpdate(SysDept dept);

    List<DeptTreeVO> queryTreeData();

    DeptDto queryById(Integer id);
}
